import { post } from '@/utils/request'
// 获取店铺分页列表
export const getInitializeStoreList = p => post(`/service-system/b/sysshops/v1/config/initPageList`, p)
// 获取店铺撤铺分页列表
export const getRemoveStoreList = p => post(`/service-system/b/sysshops/v1/config/cancelPageList`, p)
export const getNewRemoveStoreList = p => post(`/service-system/b/sysshops/v1/pageList`, p)
// service-system/b/sysshops/v1/config/cancelPageList
// 修改铺位状态
export const changeStoreState = p => post(`/service-system/b/sysshops/v1/config/changeStatus`, p)

// 角色列表
export const getStoreRoleList = p => post(`/service-upms/b/originalRole/v1/pageList`, p)
// 添加店铺角色
export const addStoreRole = p => post(`/service-upms/b/originalRole/v1/add`, p)
// 编辑店铺角色
export const editStoreRole = p => post(`/service-upms/b/originalRole/v1/modify`, p)
// 查看店铺角色
export const searchStoreRole = p => post(`/service-upms/b/originalRole/v1/view/${p.id}`, p, 'get')
// 修改角色状态
export const changeStoreRoleState = p => post(`/service-upms/b/originalRole/v1/changeStatus/${p.id}/${p.status}`, p, 'get')
// 删除角色
export const delStoreRole = p => post(`/service-upms/b/originalRole/v1/del/${p.id}`, p, 'get')
// 权限查询
export const searchStoreRoleJurisdiction = p => post(`/service-upms/b/originalRole/v1/queryPermissionIdsByRoleId/${p.roleId}`, p, 'get')
// 权限修改
export const edutStoreRoleJurisdiction = p => post(`/service-upms/b/originalRole/v1/modifyByRoleId`, p)
// 查询员工列表
export const searchStaffList = p => post(`/service-upms/b/shopUser/v1/pageList`, p)
